package com.power.mock.init;

import com.bj58.spat.scf.client.SCFInit;
import com.bj58.spat.scf.server.contract.init.IInit;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.power.mock.config.ConfigPath;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PowerInit extends AbstractModule implements IInit {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    public static final Injector injector = Guice.createInjector(new PowerInit());


    @Override
    public void init() {
        //初始化scf路径
        //初始化scf路径
        SCFInit.init(ConfigPath.SCF_CONFIG_PATH);
        SCFInit.initScfKey(ConfigPath.SCF_CONFIG_KEY_PATH);
        logger.info("scf init");
    }

    @Override
    protected void configure() {
    }
}
